package com.gi.profiler.listeners;

import android.content.Context;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;

import com.gi.profiler.R;
import com.gi.profiler.controllers.AudioControl;

public class VolumeSettingsListener implements OnSeekBarChangeListener {

    // may be useless .. check to remove it later
     private AudioControl audioCtrl ;

     public VolumeSettingsListener(Context ctx){
	 audioCtrl = AudioControl.getInstance(ctx);
     }
    
     /**
      *  Update current profile volume settings. 
      */
    public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
	// change the volume, displaying a toast message containing the
			// current volume and playing a feedback sound
//	audioMgr.setStreamVolume(AudioManager.STREAM_RING, progress,
//		AudioManager.FLAG_SHOW_UI + AudioManager.FLAG_PLAY_SOUND);
	switch (seekBar.getId()) {
	case R.id.sb_vol_ring:
            
	    break;
	case R.id.sb_vol_media:

	    break;
	case R.id.sb_vol_sys:

	    break;
	case R.id.sb_vol_notif:

	    break;
	case R.id.sb_vol_alarm:

	    break;
	}

    }

    public void onStartTrackingTouch(SeekBar seekBar) {
	// TODO Auto-generated method stub

    }

    public void onStopTrackingTouch(SeekBar seekBar) {
	// TODO Auto-generated method stub

    }

}
